home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-05-12 | 12.8 KB | 420 lines | [TEXT/MPS ] |
- ###############################################################################
- ##
- ## Project Name: Generic makefile
- ## File Name: MakeFile
- ##
- ## Description: This file will build our project
- ##
- ## Copyright © 1992 Apple Computer, Inc.
- ## All rights reserved.
- ##
- ###############################################################################
- ## A U T H O R I D E N T I T Y
- ###############################################################################
- ##
- ## Initials Name
- ## -------- -----------------------------------------------
- ## CH Craig Hotchkiss
- ##
- ###############################################################################
- ## R E V I S I O N H I S T O R Y
- ###############################################################################
- #
- # Change History (most recent first):
- #
- # <0> 5/8/92 CH Creation date.
- #
- ###############################################################################
-
-
- # Using this project name with the BuildProgram script will cause a
- # complete build.
- ProjectName = "Simon Tool"
-
-
- # This constant file is common between the Rez sources and the C files.
- # The BaseResID integer is passed here and is the basis for all
- # resource numbering.
- ConstantFileNm = "Constants.h"
- BaseResID = 400
-
-
- # This file is the name of a Resedit file containing most of the
- # pre-built resources for the tool.
- PrebuiltFileNm = "Resources.rsrc"
-
-
- ObjectFolder = ":Objects:"
- SymbolOption = off
- MacsBugOption = full
- CDumpFileName = "Load.Dump"
-
-
- CTBLibraryDir = "{Libraries}"
- CTBLibraries = {CTBLibraryDir}CommToolboxExtensions.o
-
-
-
- #---------------------------------------------------------------------------
- # start standard preamble
- # compiler options
-
- COPTIONS = ∂
- #-p ∂
- -d Debugging=1 ∂
- -d DefaultDebug=1 ∂
- -d OSErrDebug=1 ∂
- -d PrefsDebug=0 ∂
- -d ShowDefaults=1 ∂
- -d ShowMessage=1 ∂
- -d BaseResNumber={BaseResID} ∂
- -d DUMPFILENAME=∂"{CDumpFileName}∂" ∂
- -sym {SYMBOLOPTION} ∂
- -b3 ∂
- -r ∂
- -warnings on ∂
- -mbg {MacsBugOption} ∂
- -i ":" ∂
- -k {ObjectFolder}
-
- POPTIONS = ∂
- #-p ∂
- -d Debugging=TRUE ∂
- -sym {SYMBOLOPTION} ∂
- -mbg {MacsBugOption} ∂
- -u ∂
- -sym {SYMBOLOPTION}
-
- AOPTIONS = ∂
- #-p ∂
- -d Debugging=1 ∂
- -sym {SYMBOLOPTION}
-
- LINKOPTIONS = ∂
- #-p ∂
- -w ∂
- -sym {SYMBOLOPTION} ∂
- -mf
-
- LIBOPTIONS = ∂
- -sym {SYMBOLOPTION}
-
- REZOPTIONS = ∂
- #-p ∂
- -d Debugging=1 ∂
- -d BaseResNumber={BaseResID} ∂
- -d DUMPFILENAME=∂"{CDumpFileName}∂" ∂
- -d ObjectFolder=∂"{ObjectFolder}∂" ∂
- -d ConstantFileString=∂"{ConstantFileName}∂" ∂
- -i ":" ∂
- -append
-
- StandardDependencies = ∂
- {ObjectFolder}StandardLibrary
-
- MacLibraries = ∂
- "{Libraries}"Stubs.o ∂
- "{Libraries}"Interface.o ∂
- "{Libraries}"Runtime.o ∂
- "{CLibraries}"StdClib.o ∂
- "{CLibraries}"Complex.o ∂
- "{CLibraries}"CSANELib.o ∂
- "{CLibraries}"Math.o ∂
- "{Libraries}"ToolLibs.o ∂
- "{PLibraries}SANELib.o" ∂
- "{PLibraries}"PasLib.o
-
- # end standard preamble
- #---------------------------------------------------------------------------
-
-
-
- ###############################################################################
- # Other dependecies
- ###############################################################################
- #
- {ObjectFolder}Validation.c.o ƒ Globals.h {ConstantFileNm}
-
-
-
- ###############################################################################
- # FDEF build rules
- ###############################################################################
- FDEFEntrypoint = FDEF
- FDEFDescription = "Code-Main definition"
- FDEFResourceType = fdef
- FDEFResourceID = 1
- #AttrChoices = "resSysHeap,resPurgeable,resLocked,resProtected,resPreload,resChanged"
- FDEFRsrcAttributes = "resLocked"
- #
- # This rule makes sure that the load gets compiled before the code
- {ObjectFolder}FDEF.c.o ƒ {ObjectFolder}Load.c.o Globals.h
- #
- # NOTE - The entry point file must be first in this list.
- FDEFObjects = ∂
- {ObjectFolder}FDEF.c.o ∂
- {ObjectFolder}Load.c.o
- FDEFDependencies = ∂
- MakeFile ∂
- {FDEFObjects} ∂
- {CTBLibraries} ∂
- {StandardDependencies}
- #
- #
- {ProjectName} ƒƒ {FDEFDependencies}
- Link {LINKOPTIONS} ∂
- -rt {FDEFResourceType}={FDEFResourceID} ∂
- -ra {FDEFDescription}={FDEFRsrcAttributes} ∂
- -m {FDEFEntrypoint} ∂
- -sg {FDEFDescription} ∂
- {FDEFObjects} ∂
- {CTBLibraries} ∂
- {OBJECTFOLDER}StandardLibrary ∂
- -o {ProjectName}
- #Beep D,5 G,1,0 G,5 G,1,0 B,5 G,1,0 1D,10 G,1,0 B,5 G,1,0 1D,10
-
-
- ###############################################################################
- # FLOC build rules
- ###############################################################################
- FLOCEntrypoint = FLOC
- FLOCDescription = "Code-Localization"
- FLOCResourceType = floc
- FLOCResourceID = 1
- #AttrChoices = "resSysHeap,resPurgeable,resLocked,resProtected,resPreload,resChanged"
- FLOCRsrcAttributes = "resLocked"
- #
- # This rule makes sure that the load gets compiled before the code
- {ObjectFolder}FLOC.c.o ƒ {ObjectFolder}Load.c.o Globals.h
- #
- # NOTE - The entry point file must be first in this list.
- FLOCObjects = ∂
- {ObjectFolder}FLOC.c.o ∂
- {ObjectFolder}Load.c.o
- FLOCDependencies = ∂
- MakeFile ∂
- {FLOCObjects} ∂
- {CTBLibraries} ∂
- {StandardDependencies}
- #
- #
- {ProjectName} ƒƒ {FLOCDependencies}
- Link {LINKOPTIONS} ∂
- -rt {FLOCResourceType}={FLOCResourceID} ∂
- -ra {FLOCDescription}={FLOCRsrcAttributes} ∂
- -m {FLOCEntrypoint} ∂
- -sg {FLOCDescription} ∂
- {FLOCObjects} ∂
- {CTBLibraries} ∂
- {OBJECTFOLDER}StandardLibrary ∂
- -o {ProjectName}
-
-
- ###############################################################################
- # FSCR build rules
- ###############################################################################
- FSCREntrypoint = FSCR
- FSCRDescription = "Code-Scripting"
- FSCRResourceType = fscr
- FSCRResourceID = 1
- #AttrChoices = "resSysHeap,resPurgeable,resLocked,resProtected,resPreload,resChanged"
- FSCRRsrcAttributes = "resLocked"
- #
- # This rule makes sure that the load gets compiled before the code
- {ObjectFolder}FSCR.c.o ƒ {ObjectFolder}Load.c.o Globals.h
- #
- # NOTE - The entry point file must be first in this list.
- FSCRObjects = ∂
- {ObjectFolder}FSCR.c.o ∂
- {ObjectFolder}Load.c.o
- FSCRDependencies = ∂
- MakeFile ∂
- {FSCRObjects} ∂
- {CTBLibraries} ∂
- {StandardDependencies}
- #
- #
- {ProjectName} ƒƒ {FSCRDependencies}
- Link {LINKOPTIONS} ∂
- -rt {FSCRResourceType}={FSCRResourceID} ∂
- -ra {FSCRDescription}={FSCRRsrcAttributes} ∂
- -m {FSCREntrypoint} ∂
- -sg {FSCRDescription} ∂
- {FSCRObjects} ∂
- {CTBLibraries} ∂
- {OBJECTFOLDER}StandardLibrary ∂
- -o {ProjectName}
-
-
- ###############################################################################
- # FSET build rules
- ###############################################################################
- FSETEntrypoint = FSET
- FSETDescription = "Code-Setup"
- FSETResourceType = fset
- FSETResourceID = 1
- #AttrChoices = "resSysHeap,resPurgeable,resLocked,resProtected,resPreload,resChanged"
- FSETRsrcAttributes = "resLocked"
- #
- # This rule makes sure that the load gets compiled before the code
- {ObjectFolder}FSET.c.o ƒ {ObjectFolder}Load.c.o Globals.h
- #
- # NOTE - The entry point file must be first in this list.
- FSETObjects = ∂
- {ObjectFolder}FSET.c.o ∂
- {ObjectFolder}Load.c.o
- FSETDependencies = ∂
- MakeFile ∂
- {FSETObjects} ∂
- {CTBLibraries} ∂
- {StandardDependencies}
- #
- #
- {ProjectName} ƒƒ {FSETDependencies}
- Link {LINKOPTIONS} ∂
- -rt {FSETResourceType}={FSETResourceID} ∂
- -ra {FSETDescription}={FSETRsrcAttributes} ∂
- -m {FSETEntrypoint} ∂
- -sg {FSETDescription} ∂
- {FSETObjects} ∂
- {CTBLibraries} ∂
- {OBJECTFOLDER}StandardLibrary ∂
- -o {ProjectName}
-
-
- ###############################################################################
- # FVAL build rules
- ###############################################################################
- FVALEntrypoint = FVAL
- FVALDescription = "Code-Validation"
- FVALResourceType = fval
- FVALResourceID = 1
- #AttrChoices = "resSysHeap,resPurgeable,resLocked,resProtected,resPreload,resChanged"
- FVALRsrcAttributes = "resLocked"
- #
- # This rule makes sure that the load gets compiled before the code
- {ObjectFolder}FVAL.c.o ƒ {ObjectFolder}Load.c.o Globals.h
- #
- # NOTE - The entry point file must be first in this list.
- FVALObjects = ∂
- {ObjectFolder}FVAL.c.o ∂
- {ObjectFolder}Validation.c.o ∂
- {ObjectFolder}Load.c.o
- FVALDependencies = ∂
- MakeFile ∂
- {FVALObjects} ∂
- {CTBLibraries} ∂
- {StandardDependencies}
- #
- #
- {ProjectName} ƒƒ {FVALDependencies}
- Link {LINKOPTIONS} ∂
- -rt {FVALResourceType}={FVALResourceID} ∂
- -ra {FVALDescription}={FVALRsrcAttributes} ∂
- -m {FVALEntrypoint} ∂
- -sg {FVALDescription} ∂
- {FVALObjects} ∂
- {CTBLibraries} ∂
- {OBJECTFOLDER}StandardLibrary ∂
- -o {ProjectName}
-
-
- ###############################################################################
- # Other resource rules
- ###############################################################################
- ResourceDependencies = ∂
- MakeFile ∂
- {ConstantFileNm} ∂
- {PrebuiltFileNm} ∂
- Resources.r
- #
- #
- {ProjectName} ƒƒ {ResourceDependencies}
- Set ConstantsFileName {ConstantFileNm}
- Export ConstantsFileName
- #
- Set PrebuiltResourceFileName {PrebuiltFileNm}
- Export PrebuiltResourceFileName
- #
- Rez {REZOPTIONS} Resources.r -o {ProjectName}
- #
- Unset PrebuiltResourceFileName
- Unset ConstantsFileName
-
-
- ###############################################################################
- # Final step
- ###############################################################################
- ToolType = 'fbnd'
- ToolCreator = 'ctbf'
- #
- FinalDependencies = ∂
- MakeFile ∂
- {ResourceDependencies} ∂
- {FDEFObjects} ∂
- {FLOCObjects} ∂
- {FSCRObjects} ∂
- {FSETObjects} ∂
- {FVALObjects}
- #
- #
- {ProjectName} ƒƒ {FinalDependencies}
- OrphanFiles {ProjectName} ∑ Dev:NULL
- SetFile -a Bi -t {ToolType} -c {ToolCreator} {ProjectName}
- Duplicate -y -p {ProjectName} "{systemfolder}Extensions:"
-
-
-
- ###############################################################################
- # Cleanup
- ###############################################################################
- #
- Clean ƒ "{Worksheet}"
- Set Echo 0 && ∂
- Set saveExit {Exit} && ∂
- Set exit 0 && ∂
- If `Exists {ProjectName}`
- Delete -y {ProjectName}
- End
- Delete -y `Files {ObjectFolder}≈` ∑∑ Dev:Null
- Set exit {saveExit} && ∂
- Set Echo 1
-
-
-
- ###############################################################################
- # Load.Dump
- ###############################################################################
- #
- {ObjectFolder}Load.Dump ƒ Load.c
-
-
-
- ###############################################################################
- # StandardLibrary
- ###############################################################################
- #
- {ObjectFolder}StandardLibrary ƒ {MacLibraries}
- Lib ∂
- {LIBOPTIONS} ∂
- -d ∂
- {MacLibraries} ∂
- -o "{Targ}"
-
-
-
- ###############################################################################
- # Default rules
- ###############################################################################
- #
- {ObjectFolder} ƒ ":"
- #
- .c.o ƒ .c .h
- C {DepDir}{Default}.c {COPTIONS} -o {Targ}
-
- .p.o ƒ .p
- Pascal {DepDir}{Default}.p {POPTIONS} -o {Targ}
-
- .a.o ƒ .a .h
- Asm {DepDir}{Default}.a {AOPTIONS} -o {Targ}
-